package com.shatower.chatctrl.dao.service.impl;

import com.shatower.chatctrl.dao.mapper.MemberMapper;
import com.shatower.chatctrl.dao.pojo.Member;
import com.shatower.chatctrl.dao.pojo.MemberExample;
import com.shatower.chatctrl.dao.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hhggccll on 2017/10/15.
 */
@Service("memberService")
public class MemberServiceImpl implements MemberService {

    @Autowired
    private  MemberMapper memberMapper;

    @Override
    public int insertSelective(Member record) {
        return memberMapper.insertSelective(record);
    }

    @Override
    public int countByExample(MemberExample example) {
        return memberMapper.countByExample(example);
    }

    @Override
    public List<Member> selectByExample(MemberExample example) {
        return memberMapper.selectByExample(example);
    }

    @Override
    public int updateByPrimaryKeySelective(Member record) {
        return memberMapper.updateByPrimaryKeySelective(record);
    }

}
